package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.MemberSetmeal;
import com.itheima.pojo.Setmeal;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SetmealService {
    void add(Setmeal setmeal, Integer[] checkgroupIds);

    void delete(Integer id);

    void edit(Integer[] chegroupIds, Setmeal setmeal);

    List<Setmeal> finAll();

    Setmeal findById(int id);

    List<Integer> findCheckgroupIdsBySetmealId(Integer setmealId);

    List<Map<String,Object>> findSetmealCount();

    PageResult pageQuery(QueryPageBean queryPageBean);

    List<Map<String,Object>> getOrderSetmealByMemberId(Map map);

    List<MemberSetmeal> getAllSetmealByphoneNumber(String phoneNumber);

    MemberSetmeal findResultByOrderDate(Date orderDate);
}
